import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useMessageStore = defineStore('message', () => {
    const list = ref([
        {
            id: 1,
            title: "系统通知",
            content: "欢迎使用本系统！",
            sender: "admin",
            receiver: "all",
            createTime: "2025-07-03 10:00:00"
        },
        {
            id: 2,
            title: "考试提醒",
            content: "明天有数学考试，请准时参加。",
            sender: "teacher",
            receiver: "student",
            createTime: "2025-07-02 09:00:00"
        },
        {
            id: 3,
            title: "成绩发布",
            content: "期末成绩已发布，请及时查收。",
            sender: "admin",
            receiver: "student",
            createTime: "2025-07-01 08:00:00"
        }
    ])

    return { list }
})